﻿@using DeviceMaintainGIS.Model.Document;
@{
    Layout = null;
    ViewBag.Title = "DocumentAdd";
    List<DocumentTypeModel> DocumentTypeModelList = ViewBag.DocumentTypeModelList;
}
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>资料添加</title>
</head>
<body>
    <div style="padding: 15px; overflow: hidden">
        <form id="DocumentAddForm" method="post" enctype="multipart/form-data">
            <table class="tableForm" width="100%">
                <tr>
                    <th width="200px">
                        资料名称：
                    </th>
                    <td>
                        @*<input class="easyui-filebox" style="width:50%">*@
                        <input type="text" name="txtDocumentName" id="txtDocumentName" class="easyui-validatebox textbox" data-options="required:true" style="width:170px;height:22px;" />
                    </td>
                </tr>
                <tr>
                    <th>
                        请选资料类型：
                    </th>
                    <td>
                        <select id="selDocumentType">
                            <option value="">请选择</option>
                            @foreach (DocumentTypeModel dtm in DocumentTypeModelList)
                            {

                                <option value="@dtm.DocumentTypeId">@dtm.DocumentType</option>
                            }

                        </select>
                    </td>
                </tr>

                <tr>
                    <th>
                        是否保密：
                    </th>
                    <td>
                        <input name="IsSecrecy" id="IsSecrecy" type="checkbox" value="1" />是

                    </td>
                </tr>
            </table>
        </form>
        <form id="importFileForm" enctype="multipart/form-data">
            <table class="tableForm" width="100%">
                <tbody>
                    <tr>
                        <th width="200px">
                            资料路径：
                        </th>
                        <td>
                            <div id="DevuploadFile">
                                <input type="hidden" id="txtPath" name="txtPath">
                                <input type="hidden" id="txtDownloadUrl" name="txtDownloadUrl">

                                <input type="file" id="fileImport" accept=".doc,.docx,.xls,.xlsx,.pdf,.jpg,.png" name="fileImport" style="width:260px;" onchange="loadImage(this)">
                                <a id="uploadFile" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="#">上传</a>
                            </div>
                            <div id="DevuploadFileImg" style="display:none">上传中：<img src="~/Content/images/loading.gif" /></div>
                        </td>
                        <td>
                            <p><font size="3" face="arial" color="red">最大上传文件15M</font></p>

                        </td>

                </tbody>
            </table>
        </form>
    </div>

</body>
</html>
